/*******************************************************************************
* Copyright (c) 2010, 2017 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.service.dishes;

import com.alibaba.fastjson.JSONObject;
import com.qinyeit.serviceapp.entity.MachiningRelation;
import com.qinyetech.springstage.core.service.IBaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/** 
 * ClassName: MachiningRelationService <br/> 
 * Function: 加工关系明细业务功能 <br/> 
 * date: 2019-01-24 13:52:07 <br/> 
 * 
 * @author 祁雪萍
 * @version 1.0
 * @since JDK 1.8
 */
public interface MachiningRelationService extends IBaseService<MachiningRelation, Long> {

    /**
     * 保存
     * @param json
     */
    void saveMaterial(JSONObject json,Long merchantGroupId);





    /**
     * 查询所有成品
     * @param dName
     * @param mName
     * @param pageable
     * @return
     */
    Page<Map<String, Object>> findAllList(String dName, String mName, Boolean hasCost, Pageable pageable,Long merchantGroupId);


    void deleteRelation(Long id,Long merchantGroupId);
}